<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <style type="text/css" rel="stylesheet">
    form {
    margin: 0;
    }
    .editor {
    margin-top: 5px;
    margin-bottom: 5px;
    }
    .ke-content {
    font-family: Courier New;
    font-size: 12px;
    background-color: #ffffff;
}

  </style>
  <script type="text/javascript" charset="utf-8" src="/kindeditor/kindeditor.js"></script>
  <script type="text/javascript">
    KE.show({
        id : 'test_description',
        resizeMode :1,
        cssPath : '/kindeditor/examples/index.css',
        items : [
        'undo', 'redo', 'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
        'removeformat', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        'insertunorderedlist']
    });
  </script>
</head>
<body>
﻿<h1>创建跳转测试</h1>

<% form_for :test , :url=>{ :action => :create} do |f| %>
  <%= error_messages_for :test %>
  <p>
    <%= f.label "测试名称" %>
    <%= f.text_field :name %><br />
  </p>
  <p>
    <%= f.label "测试标题" %>
    <%= f.text_field :title %><br />
  </p>
  <p>
    <%= f.label "测试说明" %><br />
    <!--%= f.text_area :description, :cols => 30, :rows => 5 %-->
    <textarea id="test_description" name="test[description]" style="width:500px;height:200px;visibility:hidden;"></textarea>
  </p>

 <fieldset>
      <legend>添加结果</legend>
   
      <% for @r_q in @result_quest %>
      <p>
        结果<br />
				<!--input name="results[][title]" type="text"/-->
        <%= text_field_tag "results[][title]" %><br /> 
      </p>
      <p>
        结果描述<br />
        <%= text_area_tag "results[][description]", :cols => 30, :rows => 3 %>
      </p>
      <% end %>
  </fieldset>  
    <%= f.submit "保存" %>
  </p> 
<% end %>
</body>
